package com.example.androidlearing2423.kotlin

fun  celsiusToFahrenheit(c: Double):Double{
    return c*9/5+32
}
fun main(){
    print("请输入摄氏温度:")
    val  c = readLine()?.toDouble()?:0.0
    val  f = celsiusToFahrenheit(c)
    print(String.format("%.1f",f))
}